execute at @s run playsound ui.button.click block @s

execute if score @s biome_advancements_advertisments_version matches 0..3 run tellraw @s [{"translate":"您当前使用的是老版本的宣传页面，点击","color": "red"},{"translate":"此处","underlined": true,"clickEvent": {"action": "run_command","value": "/data modify storage biome_advancements:settings advertisments_version set value 4"}},{"translate":"进行更新"}]
execute if score @s biome_advancements_settings_version matches 1..6 run tellraw @s [{"translate":"您当前使用的是老版本的设置页面，点击","color": "red"},{"translate":"此处","underlined": true,"clickEvent": {"action": "run_command","value": "/data modify storage biome_advancements:settings settings_version set value 7"}},{"translate":"进行更新"}]

execute if score @s biome_advancements_settings_version matches 1 run function biome_advancements:settings/sever_settings/1
execute if score @s biome_advancements_settings_version matches 2 run function biome_advancements:settings/sever_settings/2
execute if score @s biome_advancements_settings_version matches 3 run function biome_advancements:settings/sever_settings/3
execute if score @s biome_advancements_settings_version matches 4 run function biome_advancements:settings/sever_settings/4
execute if score @s biome_advancements_settings_version matches 5 run function biome_advancements:settings/sever_settings/5
execute if score @s biome_advancements_settings_version matches 6 run function biome_advancements:settings/sever_settings/6
execute if score @s biome_advancements_settings_version matches 7 run function biome_advancements:settings/sever_settings/7
scoreboard players set @s biome_advancements_server_settings 0